package com.homework.note.Repository;

import com.homework.note.Model.Enum.StatusType;
import com.homework.note.Model.Note;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author htyu
 * @date 2019/3/10
 */
public interface NoteRepository extends MongoRepository<Note,String> {

    List<Note> findAllByUserIDAndBookIDAndStatus(String userID, String fatherID, StatusType statusType);
}
